.TH "Gameloop" 3 "Fri Dec 13 2013" "GameEngine" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Gameloop \- 
.SH SYNOPSIS
.br
.PP
.PP
\fC#include <Gameloop\&.h>\fP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBGameloop\fP ()"
.br
.ti -1c
.RI "virtual \fB~Gameloop\fP ()"
.br
.ti -1c
.RI "void \fBgameLoop\fP ()"
.br
.in -1c
.SS "Private Member Functions"

.in +1c
.ti -1c
.RI "long \fBgetTime\fP ()"
.br
.ti -1c
.RI "void \fBstopLoop\fP ()"
.br
.ti -1c
.RI "void \fBupdate\fP ()"
.br
.ti -1c
.RI "void \fBrender\fP (float interpolation)"
.br
.ti -1c
.RI "void \fBhandleInput\fP ()"
.br
.ti -1c
.RI "void \fBchangeState\fP (\fBStateMachine\fP *level)"
.br
.in -1c
.SS "Private Attributes"

.in +1c
.ti -1c
.RI "\fBWindow\fP * \fBwindow\fP"
.br
.ti -1c
.RI "long \fBlastFrame\fP"
.br
.ti -1c
.RI "bool \fBrunning\fP"
.br
.ti -1c
.RI "\fBStateMachine\fP * \fBcurrentState\fP"
.br
.ti -1c
.RI "\fBStateManager\fP * \fBmanager\fP"
.br
.in -1c
.SS "Static Private Attributes"

.in +1c
.ti -1c
.RI "static const double \fBFPS\fP = 60"
.br
.ti -1c
.RI "static int \fBtimer\fP = 0"
.br
.in -1c
.SH "Detailed Description"
.PP 
\fBGameloop\&.h\fP
.PP
Created on: 2-dec\&.-2013 Author: Axel Class that handles the game loop 
.PP
Definition at line 23 of file Gameloop\&.h\&.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "Gameloop::Gameloop ()"
constructor and destructor 
.PP
Definition at line 20 of file Gameloop\&.cpp\&.
.PP
References currentState, StateManager::initialiseState(), lastFrame, manager, NULL, running, and window\&.
.SS "Gameloop::~Gameloop ()\fC [virtual]\fP"

.PP
Definition at line 33 of file Gameloop\&.cpp\&.
.PP
References manager, and window\&.
.SH "Member Function Documentation"
.PP 
.SS "void Gameloop::changeState (\fBStateMachine\fP *level)\fC [private]\fP"
change the state 
.PP
Definition at line 133 of file Gameloop\&.cpp\&.
.PP
References currentState\&.
.PP
Referenced by update()\&.
.SS "void Gameloop::gameLoop ()"
the core gameloop function 
.PP
Definition at line 40 of file Gameloop\&.cpp\&.
.PP
References Window::closeWindow(), FPS, getTime(), handleInput(), render(), running, timer, update(), and window\&.
.PP
Referenced by main()\&.
.SS "long Gameloop::getTime ()\fC [private]\fP"
get the time 
.PP
Definition at line 91 of file Gameloop\&.cpp\&.
.PP
Referenced by gameLoop()\&.
.SS "void Gameloop::handleInput ()\fC [private]\fP"
handle input 
.PP
Definition at line 125 of file Gameloop\&.cpp\&.
.PP
References currentState, Window::getWindow(), StateMachine::handleInput(), Window::handleInput(), and window\&.
.PP
Referenced by gameLoop()\&.
.SS "void Gameloop::render (floatinterpolation)\fC [private]\fP"
render the game 
.PP
Definition at line 102 of file Gameloop\&.cpp\&.
.PP
References currentState, StateMachine::renderGame(), Window::swapBuffer(), and window\&.
.PP
Referenced by gameLoop()\&.
.SS "void Gameloop::stopLoop ()\fC [private]\fP"
stop the loop 
.PP
Definition at line 97 of file Gameloop\&.cpp\&.
.PP
References running\&.
.SS "void Gameloop::update ()\fC [private]\fP"
update the game 
.PP
Definition at line 115 of file Gameloop\&.cpp\&.
.PP
References StateManager::callStates(), changeState(), currentState, StateMachine::getKeyCode(), manager, StateMachine::stateChanger(), timer, and StateMachine::updateGame()\&.
.PP
Referenced by gameLoop()\&.
.SH "Member Data Documentation"
.PP 
.SS "\fBStateMachine\fP* Gameloop::currentState\fC [private]\fP"
holding the currentstate and the manager 
.PP
Definition at line 45 of file Gameloop\&.h\&.
.PP
Referenced by changeState(), Gameloop(), handleInput(), render(), and update()\&.
.SS "const double Gameloop::FPS = 60\fC [static]\fP, \fC [private]\fP"
the fps and timer 
.PP
Definition at line 41 of file Gameloop\&.h\&.
.PP
Referenced by gameLoop()\&.
.SS "long Gameloop::lastFrame\fC [private]\fP"
simple vars 
.PP
Definition at line 37 of file Gameloop\&.h\&.
.PP
Referenced by Gameloop()\&.
.SS "\fBStateManager\fP* Gameloop::manager\fC [private]\fP"

.PP
Definition at line 46 of file Gameloop\&.h\&.
.PP
Referenced by Gameloop(), update(), and ~Gameloop()\&.
.SS "bool Gameloop::running\fC [private]\fP"

.PP
Definition at line 38 of file Gameloop\&.h\&.
.PP
Referenced by Gameloop(), gameLoop(), and stopLoop()\&.
.SS "int Gameloop::timer = 0\fC [static]\fP, \fC [private]\fP"

.PP
Definition at line 42 of file Gameloop\&.h\&.
.PP
Referenced by gameLoop(), and update()\&.
.SS "\fBWindow\fP* Gameloop::window\fC [private]\fP"
the game window 
.PP
Definition at line 34 of file Gameloop\&.h\&.
.PP
Referenced by Gameloop(), gameLoop(), handleInput(), render(), and ~Gameloop()\&.

.SH "Author"
.PP 
Generated automatically by Doxygen for GameEngine from the source code\&.
